<script setup>
const options = [
  {
    value: '不限',
    label: '不限'
  },
  {
    value: '一年以内',
    label: '一年以内'
  },
  {
    value: '1-3年',
    label: '1-3年'
  },
  {
    value: '3-5年',
    label: '3-5年'
  },
  {
    value: '5-10年',
    label: '5-10年'
  },
  {
    value: '10年以上',
    label: '10年以上'
  }
]

const options1 = [
  {
    value: '不限',
    label: '不限'
  },
  {
    value: '初中及以下',
    label: '初中及以下'
  },
  {
    value: '中专/中技',
    label: '中专/中技'
  },
  {
    value: '高中',
    label: '高中'
  },
  {
    value: '大专',
    label: '大专'
  },
  {
    value: '本科',
    label: '本科'
  },
  {
    value: '硕士',
    label: '硕士'
  },
  {
    value: '博士',
    label: '博士'
  }
]

const options2 = [
  {
    value: '1k',
    label: '1k'
  },
  {
    value: '2k',
    label: '2k'
  },
  {
    value: '3k',
    label: '3k'
  },
  {
    value: '4k',
    label: '4k'
  },
  {
    value: '5k',
    label: '5k'
  },
  {
    value: '6k',
    label: '6k'
  }
]
</script>

<template>
  <div class="title_container">
    <div class="wrapper">
      <div class="header">
        <div class="title">
          <h3>职位基本信息</h3>
          <p>职位发布成功后，招聘类型、职位名称、职位类型、工作城市，将无法修改</p>
        </div>
        <div class="entry_conrainer">
          <img
            src="https://img.bosszhipin.com/static/file/2024/54dsap6vqb1722937842055.png.webp"
            alt=""
          />
          <span>粘贴并识别</span>
        </div>
      </div>
      <div class="form_row">
        <div class="comfirm">
          公&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;司
          <span>东莞市卓乐教育科技·计算机软件·东莞市卓乐教育科技有限公司</span>
        </div>
        <div class="recruitment_type">
          <div class="zplx">招聘类型</div>
          <ul>
            <li>社招全职</li>
            <li>应届校园招聘</li>
            <li>实习生招聘</li>
            <li>兼职招聘</li>
          </ul>
        </div>
        <div class="job_title">
          职位名称
          <input placeholder="输入职位名称" type="text" />
        </div>
        <div class="job_description">
          <div class="zwms">职位描述</div>
          <div class="content">
            <ul>
              <li>可选标题:</li>
              <li>岗位职责</li>
              <li>任职要求</li>
              <li>岗位福利</li>
              <li>教育背景</li>
              <li>行业经验</li>
              <li>岗位经验</li>
            </ul>
            <textarea
              style="
                width: 500px;
                resize: vertical;
                border: 1px solid #e6e8eb;
                border-top: none;
                max-height: 350px;
                min-height: 150px;
                line-height: 20px;
                border-radius: 10px;
              "
              name=""
              id=""
              placeholder="请勿填写QQ、微信、电话等联系方式及特殊符号、性别歧视词、违反劳动法相关内容，否则有可能会导致您的账号被封禁。"
            ></textarea>
            <div class="char_count">0/5000</div>
          </div>
        </div>
        <div class="job_title">
          职位类型
          <input placeholder="选择职位类型" type="text" />
        </div>
      </div>
      <div class="title">
        <h3>职位要求</h3>
        <p>我们将通过以下条件，为您精确推荐合适的牛人，请尽量详细填写</p>
      </div>
      <div class="job_experience">
        <div class="topic">经验</div>
        <el-select v-model="value" placeholder="选择经验" style="width: 148px; height: 32px">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          />
        </el-select>
      </div>
      <div class="job_experience">
        <div class="topic">学历</div>
        <el-select v-model="value" placeholder="选择学历" style="width: 148px; height: 32px">
          <el-option
            v-for="item in options1"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          />
        </el-select>
      </div>
      <div class="job_experience">
        <div class="topic">薪资范围</div>
        <el-select v-model="value" placeholder="最低月薪" style="width: 148px; height: 32px">
          <el-option
            v-for="item in options2"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          />
        </el-select>
      </div>
      <div class="job_experience">
        <div class="topic">薪资范围</div>
        <div class="add_skill">
          <Plus style="width: 12px; height: 13px; margin-right: 2px" />
        </div>
      </div>
      <div class="job_address">
        <div class="job_experience">
          <div class="topic">薪资范围</div>
          <el-select v-model="value" placeholder="最低月薪" style="width: 500px; height: 34px">
            <el-option
              v-for="item in options3"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            />
          </el-select>
        </div>
        <div class="advice_tip">请填写真实有效地址，若查实造假，将受到平台处罚。</div>
      </div>
      <div class="job_rule">已阅读并遵守<a href="#">《招聘行为管理规范》</a></div>
      <div class="submit">发布</div>
    </div>
  </div>
</template>

<style scoped>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

.header {
  display: flex;
  justify-content: space-between;
}

.wrapper {
  margin: 0 auto;
  width: 1200px;
}

.title h3 {
  font-size: 18px;
  font-weight: 500;
  color: #222;
  line-height: 25px;
}

.title p {
  margin-top: 5px;
  font-size: 12px;
  color: #8d97a6;
  line-height: 17px;
}

.entry_conrainer {
  width: 130px;
  height: 34px;
  background: #e8faf9;
  color: #00bebd;
  font-size: 14px;
  font-weight: 400;
  line-height: 34px;
  padding-left: 15px;
  box-sizing: border-box;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 10px;
  img {
    width: 13px;
    height: 13px;
    margin-right: 5px;
  }
}

.form_row {
  margin: 35px 0 35px 50px;
}

.comfirm {
  color: #8d97a6;
  font-size: 14px;
  margin-bottom: 30px;
  span {
    margin-left: 8px;
    color: #414a60;
  }
}

.recruitment_type {
  display: flex;
  color: #8d97a6;
  font-size: 14px;
  margin-bottom: 30px;
  ul {
    display: flex;
    li {
      margin-right: 14px;
      width: 115px;
      height: 34px;
      color: #171d26;
      line-height: 32px;
      text-align: center;
      background: #fff;
      border-radius: 4px;
      border: 1px solid #e6e8eb;
      overflow: hidden;
      cursor: pointer;
    }
  }
  .zplx {
    margin-right: 8px;
    margin-top: 6px;
  }
}

.recruitment_type li:hover {
  color: #fff;
  background-color: #00a6a5;
}

.job_title {
  color: #8d97a6;
  font-size: 14px;
  margin-bottom: 30px;
  margin-top: 30px;
  input {
    border: 1px solid #e6e8eb;
    margin-left: 5px;
    width: 500px;
    height: 34px;
    border-radius: 4px;
    color: #00a6a5;
    padding-left: 10px;
  }
}

.job_description {
  display: flex;
  color: #8d97a6;
  font-size: 14px;
  .zwms {
    margin-right: 8px;
  }
}

.content {
  display: block;
  width: 500px;
  position: relative;
  border: 1px solid #e6e8eb;
  border-radius: 10px;
  ul {
    display: flex;
    justify-content: space-between;
  }
  li {
    width: 64px;
    height: 44px;
    background: #f0f2f5;
    border-radius: 12px;
    font-size: 12px;
    color: #363e4d;
    line-height: 44px;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border-bottom: none;
  }
}

.content ul li:hover {
  color: #8d97a6;
}

.content ul li:first-child {
  font-size: 12px;
  color: #8d97a6;
  width: auto;
  height: auto;
  background-color: transparent;
  cursor: default;
  margin-left: 8px;
}

textarea::placeholder {
  font-size: 14px;
  color: #8d97a6;
  padding: 10px;
  line-height: 20px;
}

.char_count {
  position: absolute;
  bottom: 2px;
  right: 10px;
  font-size: 12px;
  background-color: hsla(0, 0%, 100%, 0.9);
}

.job_experience {
  margin-top: 25px;
  display: flex;
}

.topic {
  display: block;
  font-size: 14px;
  width: 106px;
  height: 26px;
  text-align: right;
  margin-top: 4px;
  margin-right: 8px;
  color: #8d97a6;
}

.add_skill {
  width: 56px;
  height: 24px;
  background: #fff;
  border-radius: 13px;
  border: 1px solid #e5e5e5;
  text-align: center;
  line-height: 24px;
  cursor: pointer;
  display: inline-block;
}

.add_skill:hover {
  border: 1px solid #00bebd;
  color: #00bebd;
}

.advice_tip {
  margin-left: 113px;
  color: #9fa3b0;
  font-size: 12px;
  cursor: pointer;
}

.job_rule {
  margin-left: 190px;
  margin-top: 25px;
  font-size: 14px;
  line-height: 26px;
  color: #414a60;
  a {
    color: #00bebd;
  }
}

.submit {
  width: 68px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid #5dd5c8;
  background-color: #62d5c8;
  color: #fff;
  font-size: 14px;
  line-height: 32px;
  text-align: center;
  margin-left: 520px;
  margin-top: 10px;
  cursor: pointer;
}
</style>
